﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Samek: Samek Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                Samek: Samek Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Samek Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Samek" -->
<p><code>#include &lt;<a class="el" href="_samek_8h_source.html">Samek.h</a>&gt;</code></p>

<p><a href="class_samek-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a1e9a752c1de642c13a4f0f3f7842b194">Samek</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a1bb9562d379e2799354cebb0181a06a9">~Samek</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a4976d508bc75e8a62bfaa7dfa61db7a9">a</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a0281e066a9875b2e295601e9341c94f0">b</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#aa96efee256f3c102073d2d876397c4ac">c</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a0eaf3328023bb235083294a078fb67fc">d</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#aa2579321dfe89e5767505852a34ed4e3">e</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#ab502df52aa455ec16c5200428e152269">f</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#ac1d0fc5b583a1826d94ffeb7cfbedfd3">g</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#afe09e083a69e8e19d0003eb125ec8aba">h</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#ae386dc1cabf05fd07879de9ecb2ecd88">Print</a> (const string &amp;message)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a3f6b75fc6af42249b7bcc5dd56053a95">foo</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SamekContext &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SamekContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">m_pContext</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_samek_8h_source.html#l00011">11</a> of file <a class="el" href="_samek_8h_source.html">Samek.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1e9a752c1de642c13a4f0f3f7842b194"></a><!-- doxytag: member="Samek::Samek" ref="a1e9a752c1de642c13a4f0f3f7842b194" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Samek::Samek </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00014">14</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">: <a class="code" href="class_samek.html#a3f6b75fc6af42249b7bcc5dd56053a95">foo</a>(0)
{
    <a class="code" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">m_pContext</a> = <span class="keyword">new</span> SamekContext(*<span class="keyword">this</span>);
    <a class="code" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">m_pContext</a>-&gt;SetObserver(fsm::ObserverStd::GetInstance());
    <a class="code" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">m_pContext</a>-&gt;EnterInitialState();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a1bb9562d379e2799354cebb0181a06a9"></a><!-- doxytag: member="Samek::~Samek" ref="a1bb9562d379e2799354cebb0181a06a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Samek::~Samek </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00022">22</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keyword">delete</span> <a class="code" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">m_pContext</a>;

}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4976d508bc75e8a62bfaa7dfa61db7a9"></a><!-- doxytag: member="Samek::a" ref="a4976d508bc75e8a62bfaa7dfa61db7a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::a </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00036">36</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().a();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a0281e066a9875b2e295601e9341c94f0"></a><!-- doxytag: member="Samek::b" ref="a0281e066a9875b2e295601e9341c94f0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::b </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00041">41</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().b();
}
</pre></div>
</div>
</div>
<a class="anchor" id="aa96efee256f3c102073d2d876397c4ac"></a><!-- doxytag: member="Samek::c" ref="aa96efee256f3c102073d2d876397c4ac" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::c </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00046">46</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().c();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a0eaf3328023bb235083294a078fb67fc"></a><!-- doxytag: member="Samek::d" ref="a0eaf3328023bb235083294a078fb67fc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::d </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00051">51</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().d();
}
</pre></div>
</div>
</div>
<a class="anchor" id="aa2579321dfe89e5767505852a34ed4e3"></a><!-- doxytag: member="Samek::e" ref="aa2579321dfe89e5767505852a34ed4e3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::e </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00055">55</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().e();
}
</pre></div>
</div>
</div>
<a class="anchor" id="ab502df52aa455ec16c5200428e152269"></a><!-- doxytag: member="Samek::f" ref="ab502df52aa455ec16c5200428e152269" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::f </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00059">59</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().f();
}
</pre></div>
</div>
</div>
<a class="anchor" id="ac1d0fc5b583a1826d94ffeb7cfbedfd3"></a><!-- doxytag: member="Samek::g" ref="ac1d0fc5b583a1826d94ffeb7cfbedfd3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::g </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00063">63</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().g();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a9d44040f845825a7396f267c2ea17a64"></a><!-- doxytag: member="Samek::GetContext" ref="a9d44040f845825a7396f267c2ea17a64" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SamekContext &amp; Samek::GetContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00027">27</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keywordflow">if</span>(<a class="code" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">m_pContext</a> != NULL){
        <span class="keywordflow">return</span> *<a class="code" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">m_pContext</a>;
    } <span class="keywordflow">else</span> {
        <span class="keywordflow">throw</span> runtime_error(<span class="stringliteral">&quot;context is not set&quot;</span>);
    }
}
</pre></div>
</div>
</div>
<a class="anchor" id="afe09e083a69e8e19d0003eb125ec8aba"></a><!-- doxytag: member="Samek::h" ref="afe09e083a69e8e19d0003eb125ec8aba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::h </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00068">68</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_samek.html#a9d44040f845825a7396f267c2ea17a64">GetContext</a>().h();
}
</pre></div>
</div>
</div>
<a class="anchor" id="ae386dc1cabf05fd07879de9ecb2ecd88"></a><!-- doxytag: member="Samek::Print" ref="ae386dc1cabf05fd07879de9ecb2ecd88" args="(const string &amp;message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Samek::Print </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>message</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8cpp_source.html#l00072">72</a> of file <a class="el" href="_samek_8cpp_source.html">Samek.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    cout &lt;&lt; message;
}
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a3f6b75fc6af42249b7bcc5dd56053a95"></a><!-- doxytag: member="Samek::foo" ref="a3f6b75fc6af42249b7bcc5dd56053a95" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_samek.html#a3f6b75fc6af42249b7bcc5dd56053a95">Samek::foo</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8h_source.html#l00027">27</a> of file <a class="el" href="_samek_8h_source.html">Samek.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3db5ee5d6fa767406bb43cc29836e80d"></a><!-- doxytag: member="Samek::m_pContext" ref="a3db5ee5d6fa767406bb43cc29836e80d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SamekContext* <a class="el" href="class_samek.html#a3db5ee5d6fa767406bb43cc29836e80d">Samek::m_pContext</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_samek_8h_source.html#l00032">32</a> of file <a class="el" href="_samek_8h_source.html">Samek.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_samek_8h_source.html">Samek.h</a></li>
<li><a class="el" href="_samek_8cpp_source.html">Samek.cpp</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
